package com.inforich.disposal.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;

import com.inforich.common.core.domain.BaseParamEntity;
import com.inforich.common.annotation.Excel;
import javax.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.inforich.common.core.domain.BaseEntity;

/**
 * 产出记录对象 br_output_record
 *
 * @author hjm
 * @date 2022-10-25
 */
@Data
@EqualsAndHashCode()
@Accessors(chain = true)
@TableName("br_output_record")
public class OutputRecord extends BaseParamEntity {

  private static final long serialVersionUID = 1L;

  /**
   * 主键
   */
  @TableId(type = IdType.AUTO)
  private Long id;

  /**
   * 产品名称
   */
  @Excel(name = "产品名称")
  @Size(max = 255)
  private String productName;

  /**
   * 产量
   */
  @Excel(name = "产量")
  private BigDecimal outputQuantity;
  /**
   * 单位
   */
  @Excel(name = "单位")
  @Size(max = 255)
  private String unit;
  /**
   * 处置地
   */
  private Long disposalLandId;
  @Excel(name = "资源利用化企业")
  @TableField(exist = false)
  private String disposalLandName;
  /**
   * 产出商品
   */
  private Long outputGoodsId;
  @Excel(name = "产出商品")
  @TableField(exist = false)
  private String outputGoodsName;
  /**
   * 生产日期
   */
  @JsonFormat(pattern = "yyyy-MM-dd")
  @Excel(name = "生产日期", width = 30, dateFormat = "yyyy-MM-dd")
  private Date productionData;

  /**
   * 创建时间
   */
  @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
  private Date createdDate;

  /**
   * 修改时间
   */
  private Date modifiedDate;

}